package Extends.ExtendsText001;

/**
 * ClassName:Text
 * Package:Extends.ExtendsText001
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/19-16:15
 * @Version:v1.0
 */
public class Text {
    public static void main(String[] args) {

        //创建布偶猫的对象
        Ragdoll rd = new Ragdoll();
        rd.eat();
        rd.drink();
        rd.catchMouse();
        System.out.println("===========");
        //创建哈士奇的对象
        Husky h = new Husky();
        h.eat();
        h.drink();
        h.breakHome();
        h.lookHome();
    }
}
